package com.bzzoneit.newsys.dao.admin;

import java.util.List;
import java.util.Map;

import com.bzzoneit.newsys.entity.admin.Role;

public interface RoleMapper extends IBaseMapper<Role> {
	Long getId();
	Role getRole(Map<String,Object> param);
	List<Role> getRoleList();
	List<Role> getRoleMenuList();
	List<Role> getRoleMenuListByRoleId(Long id);
	List<Role> getRoleListByuserid(Long id);
	void insertRole(Role role);
	void updateRole(Role role);	
	void deleteRole(Map<String,Object> param);
	
	void insertRoleMenu(Map<String,Object> param);
	void insertRoleMenuBatch(List<Map<String,Object>> list);
	void updateRoleMenu(Map<String,Object> param);
	void deleteRoleMenu(Long id);
	void deleteUserRoleByRoleId(Long roleid);
	void insertUserRoleBatch(List<Map<String,Object>> list);
}
